package Exam;

import java.util.LinkedList;

/**
 * @author げっしょく
        * @date 2021/7/25
        */
public class Test2 {
    public static void main(String[] args) {
        LinkedList<String> list = new LinkedList<>();
        list.addLast("aaa");
        list.addLast("bbb");
        list.addLast("ccc");
        list.addLast("ddd");
        System.out.println(list);
        list.removeFirst();
        System.out.println(list);
        list.removeFirst();
        System.out.println(list);
        list.removeFirst();
        System.out.println(list);
    }
}
